<!--{if $arrJiajucompany['jiajucompany_isfvip']==1}-->
<!--<include file="Jiaju_Extend::getTemplate($arrJiajucompany,'vipheader',true)" />-->
<!--{d*else}-->
<!--<include file="Core_Extend::template('header')" />-->
<!--{/if}-->

<script type="text/javascript" src="<!--{:__PUBLIC__}-->/js/calendar/datepicker/WdatePicker.js"></script>
<!--{~$sCalendarLang=Core_Extend::calendar()}-->
<!--{:Core_Extend::validate()}-->

<!--{script}-->
function addOrder(){
	$("#submit_button").attr("disabled","disabled");
	$("#submit_button").val('提交预约...');
	Q.AjaxSubmit('addOrder',Q.U('jiaju://shop/buildorder?id=<!--{$arrBuild['jiajubuild_id']}-->'),'',function(data,status){ 
		$("#submit_button").attr("disabled",false);
		$("#submit_button").val("提交预约");
		if(status==1){
			setTimeout(function(){
				window.location.replace(_SELF_);
			},1000);
		}
	});
}

checkForm(addOrder);
<!--{/script}-->

	<!--{if !$arrJiajucompany['jiajucompany_isfvip']}-->
	<div class="container_12">
		<ul class="breadcrumb">
			<li><a href="<!--{:__APP__}-->" title="<!--<lang package='__COMMON_LANG__@Common'>-->主页<!--</lang>-->"><!--<lang package='__COMMON_LANG__@Common'>-->主页<!--</lang>--></a>&nbsp;<span class="divider">/</span>&nbsp;</li>
			<li><a href="<!--{:Q::U('[D]~@jiaju://public/index')}-->" title="<!--<lang package='Template'>-->家居装饰<!--</lang>-->"><!--<lang package='Template'>-->家居装饰<!--</lang>--></a>&nbsp;<span class="divider">/</span>&nbsp;</li>
			<li><a href="<!--{:Q::U('[D]~@jiaju://company/index')}-->"><!--{$GLOBALS['_citysite_']['site_name']}--><!--<lang package='Template'>-->装修公司排名<!--</lang>--></a>&nbsp;<span class="divider">/</span>&nbsp;</li>
			<li><a href="<!--{:Jiaju_Extend::getShopUrl($arrJiajucompany)}-->"><!--{$arrJiajucompany['jiajucompany_fullname']}--></a>&nbsp;<span class="divider">/</span>&nbsp;</li>
			<li><a href="<!--{:Jiaju_Extend::getBuildShow($arrJiajucompany,$arrBuild['jiajubuild_id'])}-->"><!--{$arrBuild['jiajubuild_title']}--></a>&nbsp;<span class="divider">/</span>&nbsp;</li>
			<li>添加参观预约</li>
		</ul>
	</div>
	<!--{/if}-->

	<div class="container_12 container_box">
		<!--{if $arrJiajucompany['jiajucompany_isfvip']==1}-->
		<!--<include file="Jiaju_Extend::getTemplate($arrJiajucompany,'menu',true)" />-->
		<!--{/if}-->
		
		<div class="grid_12">
			<div class="common_contentbox common_contentboxwhite clearfix">
				<div class="common_contentbody">
					<span class="right"><a href="<!--{:Jiaju_Extend::getBuildShow($arrJiajucompany,$arrBuild['jiajubuild_id'])}-->" title="返回在建工地-(<!--{$arrBuild['jiajubuild_title']}-->)">返回在建工地&nbsp;(<!--{$arrBuild['jiajubuild_title']}-->)</a></span>
					<h1 class="title"><!--{$arrBuild['jiajubuild_title']}-->在线预约参观</h1>
					<form class="form-horizontal validate" method='post' id="addOrder" name="addOrder">
						<fieldset>
							<div class="control-group">
								<label class="control-label">参观工地</label>
								<div class="controls">
									<input class="input-xlarge" type="text" value="<!--{$arrBuild['jiajubuild_title']}-->" disabled>
								</div>
							</div>
							<div class="control-group">
								<label class="control-label">房屋类型</label>
								<div class="controls">
									<input class="input-xlarge" type="text" value="<!--{$arrBuild['space_name']}-->" disabled>
								</div>
							</div>
							<div class="control-group">
								<label class="control-label">建筑面积</label>
								<div class="controls">
									<input class="input-xlarge" type="text" value="<!--{$arrBuild['jiajubuild_realspace']}-->平米" disabled>
								</div>
							</div>
							<div class="control-group">
								<label class="control-label">开工时间</label>
								<div class="controls">
									<input class="input-xlarge" type="text" value="<!--{$arrBuild['jiajubuild_starttime']}-->" disabled>
								</div>
							</div>
							<div class="control-group">
								<label class="control-label" for="jiajubuildorder_time">预约商家服务时间<em style="color:red">*</em></label>
								<div class="controls">
									<input class="input-xlarge {required:true}" id="jiajubuildorder_time" name="jiajubuildorder_time" type="text" value="<!--{:date('Y-m-d',CURRENT_TIMESTAMP)}-->" onclick="WdatePicker({el:'jiajubuildorder_time',skin:'ext',lang:'<!--{$sCalendarLang}-->',dateFmt:'yyyy-MM-dd'})" style="width:70px;">
									<p class="input_tips">选择需要商家提供服务的时间。</p>
									<p class="input_errortips"></p>
								</div>
							</div>
							<div class="control-group">
								<label class="control-label" for="jiajubuildorder_realname">真实姓名<em style="color:red">*</em></label>
								<div class="controls">
									<input class="{required:true,maxlength:20}" id="jiajubuildorder_realname" name="jiajubuildorder_realname" type="text" value="">
									<p class="input_tips">填写真实姓名（必须中文），才能享受投诉保障。</p>
									<p class="input_errortips"></p>
								</div>
							</div>
							<div class="control-group">
								<label class="control-label" for="jiajubuildorder_mobile">手机号码<em style="color:red">*</em></label>
								<div class="controls">
									<input class="{required:true,isMobile:true}" id="jiajubuildorder_mobile" name="jiajubuildorder_mobile" type="text" value="">
									<p class="input_tips">必须填写真实的手机号码，以便于商家联系你。</p>
									<p class="input_errortips"></p>
								</div>
							</div>
							<div class="control-group">
								<label class="control-label" for="jiajubuildorder_qq">QQ<em style="color:red">*</em></label>
								<div class="controls">
									<input class="{required:true,isQQ:true}" id="jiajubuildorder_qq" name="jiajubuildorder_qq" type="text" value="">
									<p class="input_tips">必须填写真实的QQ号码，备用联系方式，以便于商家联系你。</p>
									<p class="input_errortips"></p>
								</div>
							</div>
							<div class="control-group">
								<label class="control-label" for="jiajubuildorder_address">你的联系地址</label>
								<div class="controls">
									<input class="{maxlength:150}" id="jiajubuildorder_address" name="jiajubuildorder_address" type="text" value="">
									<p class="input_errortips"></p>
								</div>
							</div>
							<div class="control-group">
								<label class="control-label" for="jiajubuildorder_remark">特别要求填写备注</label>
								<div class="controls">
									<textarea class="{maxlength:250}" id="jiajubuildorder_remark" name="jiajubuildorder_remark" type="text" value="" style="width:500px;height:100px;"></textarea>
									<p class="input_errortips"></p>
								</div>
							</div>
							<div class="form-actions">
								<input type="hidden" name="ajax" value="1">
								<input type="hidden" id="id" name="id" value="<!--{$arrBuild['jiajubuild_id']}-->">
								<input type="submit" id="submit_button" class="btn" value="提交预约" />
							</div>
						</fieldset>
					</form>

					<div class="tips tips-highlight">当商家收到你的在建工地预约参观申请后，他们会在第一时间通过你填写的联系方式联系您。</div>
				</div>
			</div>
		</div>
		<div class="clearfix"></div>
	
	</div>

<!--<include file="Core_Extend::template('footer')" />-->